tar xf jdk-8u321-linux-x64.tar.gz
tar xf apache-maven-3.8.4-bin.tar.gz

echo '

#JAVA
export JAVA_HOME=/opt/jdk/jdk1.8.0_321
export PATH=${JAVA_HOME}/bin:$PATH
export CLASSPATH=.:${JAVA_HOME}/lib/dt.jar:${JAVA_HOME}/lib/tools.jar

#MAVEN
export MAVEN_HOME=/opt/maven/apache-maven-3.8.4
export PATH=$PATH:$MAVEN_HOME/bin' >> /etc/profile

source /etc/profile
java --version
mvn -v